package com.hzqy.service.cleaner;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.hzqy.persistence.dao.cleaner.CleanerDao;
import com.hzqy.service.core.GenericServiceBean;
import com.hzqy.web.vo.CmContentVo;
import com.hzqy.web.vo.PmsOrgVo;

@Service
public class CleanerServiceBean extends GenericServiceBean<CmContentVo,CleanerDao, Integer>{
	
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	@Resource
	private CleanerDao cleanerDao;
	@Override
	public CleanerDao getEntityDao() {
		
		return cleanerDao;
	}
	
	public List<Object> selectCleanerTime(CmContentVo cmContentVo) {
		List<Object> obs = cleanerDao.selectCleanerTime(cmContentVo);
		return obs;
	}
	

	public int deleteCleanerPlan(CmContentVo cmContentVo) {
		int flag = cleanerDao.deleteCleanerPlan(cmContentVo);
		return flag;
	}

	public int updateCleanerTime(CmContentVo cmContentVo) {
		int flag = cleanerDao.updateCleanerTime(cmContentVo);
		return flag;
	}

	public PmsOrgVo selectPmsCleanerResidue(PmsOrgVo pmsOrgVo) {
		PmsOrgVo pms =  cleanerDao.selectPmsCleanerResidue(pmsOrgVo);
		return pms;
	}

	public int updateCleanerResidue(PmsOrgVo pmsOrgVo) {
		int flag = cleanerDao.updateCleanerResidue(pmsOrgVo);
		return flag;
	}

	public int selectCleanerCount(CmContentVo contentVo) {
		int count = cleanerDao.selectCleanerCount(contentVo);
		return count;
	}

	public CmContentVo selectContentById(CmContentVo contentVo) {
		CmContentVo cmContentVo = cleanerDao.selectContentById(contentVo);
		return cmContentVo;
	}

	

	

}
